//------------------------------------------------------------------------------
//	file midi_const.h
//	brief
//		MIDI constants
//
//	$Id: midi_const.h 3 2014-04-19 07:10:51Z ac.verbeck@gmail.com $
//------------------------------------------------------------------------------

//------------------------------------------------------------------------------
//	Copyright and Disclaimer Notice
//
//	The MIT License (MIT)
//	
//	Copyright (c) 2014 A.C. Verbeck
//	
//	Permission is hereby granted, free of charge, to any person obtaining a copy
//	of this software and associated documentation files (the "Software"), to deal
//	in the Software without restriction, including without limitation the rights
//	to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
//	copies of the Software, and to permit persons to whom the Software is
//	furnished to do so, subject to the following conditions:
//	
//	The above copyright notice and this permission notice shall be included in
//	all copies or substantial portions of the Software.
//	
//	THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
//	IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
//	FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
//	AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
//	LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//	OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
//	THE SOFTWARE.
//
//------------------------------------------------------------------------------

//
//	MIDI channel voice messages
//
#define NOTE_OFF					0x80
#define NOTE_ON						0x90
#define POLY_PRESSURE				0xA0
#define CONTINUOUS_CONTROLLER		0xB0
#define PROGRAM_CHANGE				0xC0
#define CHANNEL_PRESSURE			0xD0
#define PITCH_BEND					0xE0

//
//	MIDI system common messages
//
#define SYSTEM_EXCLUSIVE			0xF0
#define MIDI_TIME_CODE				0xF1
#define SONG_POSITION_POINTER		0xF2
#define SONG_SELECT					0xF3
//	Undefined						0xF4	(reserved)
//	Undefined						0xF5	(reserved)
#define TUNE_REQUEST				0xF6
#define END_OF_EXCLUSIVE			0xF7

//
//	MIDI system realtime messages
//
#define TIMING_CLOCK				0xF8
//	Undefined						0xF9	(reserved)
#define START						0xFA
#define CONTINUE					0xFB
#define STOP						0xFC
//	Undefined						0xFD	(reserved)
#define ACTIVE_SENSING				0xFE
#define SYSTEM_RESET				0xFF

//
//	End: midi_const.h
//